package com.woniuxy01;

import java.io.PrintStream;
import java.sql.SQLOutput;
import java.util.*;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;

/**
 * @author 作者
 * @create 2025-11-07 11:19
 */
public class Test04 {

    public static void main(String[] args) {
        
    }

    private static void test01() {
        List<String> strs=new ArrayList<>();
        strs.add("aaa");
        strs.add("bbb");
        strs.add("ccc");
        strs.stream().forEach(str-> System.out.println(str));

        String[] strs2=new String[]{"aaa","bbb","ccc"};
        Arrays.stream(strs2).forEach(str-> System.out.println(str));
        String[] strs3=new String[]{"aaa","bbb","ccc"};
        Stream.of(strs3).forEach(str-> System.out.println(str));
    }


    static List<Account> getList() {
        Account a1 = new Account(10, "刘口水a", "123", "男", 2000, "成都市", "18868036677", new Date());
        Account a2 = new Account(102, "刘言b", "123", "女", 8000, "宜宾市", "18868036688", new Date());
        Account a3 = new Account(101, "刘备", "123", "男", 20000, "成都市", "18868036557", new Date());
        Account a4 = new Account(30, "杜脐眼", "123", "女", 28000, "宜宾市", "18868036337", new Date());
        Account a5 = new Account(50, "杜子谦", "123", "男", 6000, "成都市", "18868032277", new Date());
        Account a6 = new Account(20, "杜甫", "123", "男", 20000, "乐山市", "18868030077", new Date());
        Account a7 = new Account(14, "杨洋", "123", "男", 10000, "成都市", "18868036637", new Date());
        Account a8 = new Account(14, "杨洋", "123", "男", 10000, "成都市", "18868036637", new Date());

        List<Account> list = new ArrayList<Account>();
        list.add(a1);
        list.add(a2);
        list.add(a3);
        list.add(a4);
        list.add(a5);
        list.add(a6);
        list.add(a7);
        list.add(a8);
        return list;
    }

    private static boolean test(Account account) {
        return account.getAname().equals("xxx");
    }
}
